 import java.util.Scanner;
 
 public class PP32
 {
    public static void main(String[] args)
    {
       double x, y, z1, z2, n;

       Scanner scan = new Scanner(System.in);

       System.out.print("Enter the x factor(Int): ");
       x = scan.nextInt();

       System.out.print("Enter the y factor(Int): ");
       y = scan.nextInt();

       z1 = Math.pow(x, 3);
       z2 = Math.pow(y, 3);
       n = z1 + z2;

       System.out.println("result:"+n);
     }
 }
